﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SideBarMaster.master" AutoEventWireup="true" CodeFile="XacNhanHoaDon.aspx.cs" Inherits="HoaDon_XacNhanHoaDon" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Menu" Runat="Server">
    <li ><a href="../Default.aspx">Trang Chủ</a></li>
<li><a href="../Sach.aspx">Sách</a></li>
<li ><a href="../Ebook.aspx">Ebook</a></li>
<li id="currect"><a href="../HoaDon.aspx">Hóa Đơn</a></li>
<li><a href="../KhachHang.aspx">Khách Hàng</a></li>
<li><a href="../WebService.aspx">Webservice</a></li>
<li><a href="../LienHe.aspx">Liên Hệ</a></li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" Runat="Server">
    Xác nhận hóa đơn
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentDescription" Runat="Server">
    Xác nhận hóa đơn, vận chuyển hàng cho bên kinh doanh.
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContain" Runat="Server">
    <div id="thongtinhoadon">
    <asp:Literal ID="lbMessage" runat="server"></asp:Literal>
<br />
<h4 class="button">Thông tin hóa đơn</h4>
        
<hr />
 - Mã hóa đơn:
    <asp:Label ID="lbMaHoaDon" runat="server" Text="HDxx"></asp:Label>
    <br />
    - Khách hàng:
    <asp:Label ID="lbKhachHang" runat="server" Text="Khach hang xx"></asp:Label>
    <br />
    - Ngày lập:
    <asp:Label ID="lbNgayLap" runat="server" Text="Ngay lap xx"></asp:Label>
    <br />
    - Tống giá trị:
    <asp:Label ID="lbTongTien" runat="server" Text="0"></asp:Label>
    <br />
    - Chi tiết hóa đơn:<br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSourceChiTietHoaDon" CellPadding="3" 
            GridLines="Horizontal" BackColor="White" BorderColor="#E7E7FF" 
            BorderStyle="None" BorderWidth="1px">
        <AlternatingRowStyle BackColor="#F7F7F7" />
        <Columns>
            <asp:BoundField DataField="TenSach" HeaderText="Tên sách" SortExpression="TenSach" />
            <asp:BoundField DataField="SoLuong" HeaderText="Số lượng" SortExpression="SoLuong" />
            <asp:BoundField DataField="DonGia" HeaderText="Đơn giá" SortExpression="DonGia" />
            <asp:BoundField DataField="ThanhTien" HeaderText="Thành tiền" SortExpression="ThanhTien" />
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSourceChiTietHoaDon" runat="server" ConnectionString="<%$ ConnectionStrings:PublisherDBConnectionString %>"
        SelectCommand="SELECT Sach.TenSach, ChiTietHoaDon.SoLuong, ChiTietHoaDon.DonGia, ChiTietHoaDon.ThanhTien FROM ChiTietHoaDon INNER JOIN HoaDon ON ChiTietHoaDon.MaHoaDon = HoaDon.MaHoaDon INNER JOIN Sach ON ChiTietHoaDon.MaSach = Sach.MaSach WHERE ChiTietHoaDon.MaHoaDon=@MaHoaDon">
        
    </asp:SqlDataSource>
    <asp:HiddenField ID="hfMaHoaDon" runat="server" />
</div>
<br />
<div id="thongtinthanhtoan">
<h4  class="button">Thông tin thanh toán</h4>
    
<hr />
    <p>&nbsp;</p>
<p>
- Chọn nhà vận chuyển: 
    <asp:DropDownList ID="ddlNhaVanChuyen" runat="server">
        <asp:ListItem Value="VC09">VC09 - UPStransport</asp:ListItem>
        <asp:ListItem Value="VC10">VC10 - Globaltranz</asp:ListItem>
    </asp:DropDownList>
</p>
    <p>
        - Loại dịch vụ: 
    <asp:DropDownList ID="ddlDichVu" runat="server">
        <asp:ListItem>Bình thường</asp:ListItem>
        <asp:ListItem>Cấp tốc</asp:ListItem>
       
    </asp:DropDownList>
</p>
    <p>
        - Từ: 277 Nguyễn Văn Cừ P1 Q5 Thành Phồ Hồ Chí Minh
</p>
    <p>
        - Đến:
          
        </asp:DropDownList>
        <asp:Label ID="lbDiaChiKhachHang" runat="server" Text=""></asp:Label>
</p>
<p>
- Chọn hệ thống thanh toán:
    <asp:DropDownList ID="ddlMoiGioi" runat="server">
        <asp:ListItem Value="NH10">NH10 - CityBank</asp:ListItem>
        <asp:ListItem Value="NH12">NH12 - SeaBank</asp:ListItem>
        <asp:ListItem Value="NH13">NH13 - GPBank</asp:ListItem>
        <asp:ListItem Value="NH14">NH14 - VPBank</asp:ListItem>
    </asp:DropDownList>
</p>
<hr />
<p>
    
<asp:Button ID="btXacNhan" runat="server" Text="Xác nhận"  CssClass="button red"
    onclick="btXacNhan_Click" />
</div>



</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TitleSideBar" Runat="Server">
    Chức năng
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ListMenuItem" Runat="Server">
    <li><a href="#">Hóa đơn mới</a></li>
<li><a href="#">Chi tiết hóa đơn</a></li>

</asp:Content>
